package lhdx9;

public class Automobile  {
    private String yangS;
    private String cheP;

    public String getYangS() {
        return yangS;
    }

    public void setYangS(String yangS) {
        this.yangS = yangS;
    }

    public String getCheP() {
        return cheP;
    }

    public void setCheP(String cheP) {
        this.cheP = cheP;
    }

    public Automobile(String yangS, String cheP) {
        this.yangS = yangS;
        this.cheP = cheP;
    }
    public void print(){
        System.out.println("车牌为"+cheP+"启动，加速，刹车!");
    }
}
